/**
 * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package de.hsmannheim.pepa.patientenportal.apanwep.model;

import java.io.Serializable;

import java.util.ArrayList;
import java.util.List;

/**
 * This class is used by SOAP remote services, specifically {@link de.hsmannheim.pepa.patientenportal.apanwep.service.http.message_objectsServiceSoap}.
 *
 * @author Cedric Nana
 * @see de.hsmannheim.pepa.patientenportal.apanwep.service.http.message_objectsServiceSoap
 * @generated
 */
public class message_objectsSoap implements Serializable {
	public static message_objectsSoap toSoapModel(message_objects model) {
		message_objectsSoap soapModel = new message_objectsSoap();

		soapModel.setMessageobjectsID(model.getMessageobjectsID());
		soapModel.setObject_id(model.getObject_id());

		return soapModel;
	}

	public static message_objectsSoap[] toSoapModels(message_objects[] models) {
		message_objectsSoap[] soapModels = new message_objectsSoap[models.length];

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModel(models[i]);
		}

		return soapModels;
	}

	public static message_objectsSoap[][] toSoapModels(
		message_objects[][] models) {
		message_objectsSoap[][] soapModels = null;

		if (models.length > 0) {
			soapModels = new message_objectsSoap[models.length][models[0].length];
		}
		else {
			soapModels = new message_objectsSoap[0][0];
		}

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModels(models[i]);
		}

		return soapModels;
	}

	public static message_objectsSoap[] toSoapModels(
		List<message_objects> models) {
		List<message_objectsSoap> soapModels = new ArrayList<message_objectsSoap>(models.size());

		for (message_objects model : models) {
			soapModels.add(toSoapModel(model));
		}

		return soapModels.toArray(new message_objectsSoap[soapModels.size()]);
	}

	public message_objectsSoap() {
	}

	public long getPrimaryKey() {
		return _messageobjectsID;
	}

	public void setPrimaryKey(long pk) {
		setMessageobjectsID(pk);
	}

	public long getMessageobjectsID() {
		return _messageobjectsID;
	}

	public void setMessageobjectsID(long messageobjectsID) {
		_messageobjectsID = messageobjectsID;
	}

	public long getObject_id() {
		return _object_id;
	}

	public void setObject_id(long object_id) {
		_object_id = object_id;
	}

	private long _messageobjectsID;
	private long _object_id;
}